﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="SearchObject.ascx.cs"
    Inherits="CommonControls.Search.SearchObject" %>
<%@ Import Namespace="CoreLibs" %>
<%@ Import Namespace="HUGATE.Utility" %>
<div class="Height">
</div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%" id="tbSearch"
            runat="server">
            <tr>
                <td style="width: 80px">
                    <%=HUGATE.Utility.ResxManager.GetString("SearchString")+":"%>
                </td>
                <td>
                    <asp:TextBox ID="txtSearch" runat="server" MaxLength="200" Width="150px"></asp:TextBox>
                    <asp:DropDownList ID="ddl1" OnSelectedIndexChanged="ddl1_SelectedIndexChanged" runat="server">
                    </asp:DropDownList>
                    <asp:DropDownList ID="ddl2" runat="server">
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" CssClass="Control_Button0" OnClick="btnSearch_Click"
                        Text="Tìm kiếm" />
                </td>
                <td>
                    <asp:UpdateProgress ID="UpdateProgress2" runat="server" DisplayAfter="10">
                        <ProgressTemplate>
                            &nbsp;
                            <img alt="" src='<%=CoreLibs.Globals.ApplicationVRoot() + "/App_Themes/Default/Images/System/ajaxload.gif" %>' />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                </td>
            </tr>
        </table>
        <div class="Height">
        </div>
        <asp:GridView ID="grvObject" runat="server" AutoGenerateColumns="false" CssClass="Gridview"
            Width="100%" OnPageIndexChanging="grvObject_PageIndexChanging" PageSize="10"
            AllowPaging="True">
            <HeaderStyle CssClass="Gridview_Header" />
            <PagerStyle CssClass="Gridview_Pager" />
            <RowStyle CssClass="Gridview_RowStyle" />
            <EmptyDataRowStyle HorizontalAlign="Center" />
            <EmptyDataTemplate>
                <%=HUGATE.Utility.ResxManager.GetString("BUTEmptyData") %>
            </EmptyDataTemplate>
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <input id="selectall" name="selectall" onclick="javascript:CheckAll('iptSelect', this.checked);"
                            type="checkbox" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:Label ID='lblCheckbox' runat="server"></asp:Label>
                    </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%#ColumnCaption1%>
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtChoose" runat="server" OnClick="lbtChoose_Click"></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%#ColumnCaption2%>
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemTemplate>
                        <asp:Label ID="lblData2" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField Visible="false">
                    <HeaderTemplate>
                        <%#ColumnCaption3%>
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemTemplate>
                        <asp:Label ID="lblData3" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField Visible="false">
                    <HeaderTemplate>
                        <%#ColumnCaption4%>
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemTemplate>
                        <asp:Label ID="lblData4" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
        <div class="Height">
        </div>
        <div style="text-align: left; padding-left: 3px;">
            <asp:Button ID="btnOk" runat="server" CssClass="Control_Button0" OnClick="btnOk_Click" />
            <asp:Button ID="btnOkMore" runat="server" CssClass="Control_Button3" OnClick="btnOkMore_Click" />
        </div>
    </ContentTemplate>
    <Triggers>
        <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
    </Triggers>
</asp:UpdatePanel>
